package com.alibaba.org.domain;

import com.alibaba.basic.domain.BaseDomain;
import com.alibaba.system.domain.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp extends BaseDomain {
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    private Integer state = 1;
    private Long department_id;

    private Dept department;
    private Long logininfo_id;
    private Long shop_id;
    private Shop shop;
    //方便从中间表中为当前员工添加角色
    private Long role_id;
    private Role role;
}
